import Mock from'mockjs';
import homeApi from './mockServeData/home'
import userApi from './mockServeData/user'
// 拦截接口
// 当请求URL 匹配正则表达式 /home/getData/ 时触发拦截，返回 homeApi.getStatisticalData 中定义的模拟数据
Mock.mock(/home\/getData/,homeApi.getStatisticalData)
Mock.mock(/user\/getUser/,'get',userApi.getUserList)
Mock.mock(/user\/addUser/,'post',userApi.createUser)
Mock.mock(/user\/editUser/,'get',userApi.updateUser)

Mock.mock(/user\/delUser/,'post',userApi.deleteUser)